﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using MethodWorx.CMS.TemplateLanguage;
using MethodWorx.CMS.TemplateLanguage.Properties;

namespace MethodWorx.CMS.TemplateParser.Compiler
{
    public class SetVar : IParser
    {
        [Property]
        public string Value { get; set; }

        public object Parse(Web.CmsRequestContext context, IEnumerable<object> stack, Dictionary<string, object> parameters)
        {
            return this.Value; 
        }

        public string Name
        {
            get { return "set"; }
        }

        public string Namespace
        {
            get { return "var";  }
        }
    }
}
